package com.cssw.fyzb.web.service;

import com.cssw.fyzb.base.web.domain.AjaxData;
import com.cssw.fyzb.core.dao.system.SysParamDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author YangYiQun
 */
@Service
public class SysParamService {

    @Autowired
    SysParamDao sysParamDao;

    public AjaxData list() {
        return AjaxData.success(sysParamDao.list());
    }

    public AjaxData update(String paramCode, String paramValue)
    {
        return AjaxData.success(sysParamDao.update(paramCode,paramValue));
    }
}
